'use strict';

const Controller = require('egg').Controller;

class PicController extends Controller {
  async index() {
    const { ctx } = this;
    let imgsrc = '/cardpic?id=' + 10000 + '&size=400';
    ctx.body = '<img style="width:320px" src="' + imgsrc + '"/>';
  }
}

module.exports = PicController;
